/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const collectionRouter = {
  path: '/collection',
  component: Layout,
  redirect: 'noRedirect',
  name: 'collectionDemo',
  meta: {
    title: '催收管理',
    icon: 'component'
  },
  children: [{
    path: 'normal',
    component: () => import('@/views/collection/normal'),
    name: 'collectionIndex',
    meta: {
      title: '正常催收'
    }
  }, {
    path: 'overdue',
    component: () => import('@/views/collection/overdue'),
    name: 'orderOverdue',
    meta: {
      title: '逾期催收'
    }
  }, {
    path: 'detail/:order_id/:pay_id',
    component: () => import('@/views/collection/detail'),
    name: 'collectionDetail',
    meta: {
      title: '付款处理'
    },
    hidden: true
  }

  ]
}

export default collectionRouter
